package com.hwtx.form.ext;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class ChartConfigRepoImpl extends ServiceImpl<ChartConfigMapper, ChartConfig> implements ChartConfigRepo {
    @Override
    public List<ChartConfig> getDefaultLineChartConfig() {
        return list(new LambdaQueryWrapper<ChartConfig>()
                .isNull(ChartConfig::getCInstance).eq(ChartConfig::getCType, "line"));
    }

    @Override
    public List<ChartConfig> getDefaultPieChartConfig() {
        return List.of();
    }
}
